package com.dmatek.uwb.packet.bean;

import java.util.HashMap;
import java.util.Map;

/***
 * 卡片讯息
 * @author zhangfu
 * @data 2019年6月14日 下午5:18:32
 * @Description
 */
public class TagInfor {
	private int rid;// 区域ID
	private String id;// 卡片ID
	private int sos, adc, sensor; //0: 静止；1:移动
	private int index;
	private int heartRate = -1; // 心率值<0：表示未检测出心率
	private int noExeTime, sleepTime;
	private short totalBasicNum;
	private long upload;
	private int basicNum;
	private HashMap<String, ENodeBDistance> eNodeBDistances; // 所有检测到的基站上报的距离
	private boolean isReport; 
	private int gsensorX, gsensorY;
	private double x, y;
	public TagInfor() {
		super();
		eNodeBDistances = new HashMap<String, ENodeBDistance>();
	}
	public int getRid() {
		return rid;
	}
	public void setRid(int rid) {
		this.rid = rid;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public int getSos() {
		return sos;
	}
	public void setSos(int sos) {
		this.sos = sos;
	}
	public int getAdc() {
		return adc;
	}
	public void setAdc(int adc) {
		this.adc = adc;
	}
	public int getSensor() {
		return sensor;
	}
	public void setSensor(int sensor) {
		this.sensor = sensor;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	public int getHeartRate() {
		return heartRate;
	}
	public void setHeartRate(int heartRate) {
		this.heartRate = heartRate;
	}
	public int getNoExeTime() {
		return noExeTime;
	}
	public void setNoExeTime(int noExeTime) {
		this.noExeTime = noExeTime;
	}
	public int getSleepTime() {
		return sleepTime;
	}
	public void setSleepTime(int sleepTime) {
		this.sleepTime = sleepTime;
	}
	public short getTotalBasicNum() {
		return totalBasicNum;
	}
	public void setTotalBasicNum(short totalBasicNum) {
		this.totalBasicNum = totalBasicNum;
	}
	public long getUpload() {
		return upload;
	}
	public void setUpload(long upload) {
		this.upload = upload;
	}
	public int getBasicNum() {
		return basicNum;
	}
	public void setBasicNum(int basicNum) {
		this.basicNum = basicNum;
	}
	public boolean isReport() {
		return isReport;
	}
	public void setReport(boolean isReport) {
		this.isReport = isReport;
	}
	public Map<String, ENodeBDistance> geteNodeBDistances() {
		return eNodeBDistances;
	}
	@Override
	public String toString() {
		return "TagInfor [rid=" + rid + ", id=" + id
				+ ", sos=" + sos + ", adc=" + adc + ", index=" + index
				+ ", noExeTime=" + noExeTime + ", sleepTime=" + sleepTime
				+ ", x=" + x + ", y=" + y + "]";
	}
	public double getX() {
		return x;
	}
	public void setX(double x) {
		this.x = x;
	}
	public double getY() {
		return y;
	}
	public void setY(double y) {
		this.y = y;
	}
	public int getGsensorX() {
		return gsensorX;
	}
	public void setGsensorX(int gsensorX) {
		this.gsensorX = gsensorX;
	}
	public int getGsensorY() {
		return gsensorY;
	}
	public void setGsensorY(int gsensorY) {
		this.gsensorY = gsensorY;
	}
}
